﻿using System.Collections.Generic;
using System.Web.Mvc;

using Spectro.Cards;
using Spectro.Cards.Cards.Fire;
using Spectro.Cards.Cards.Physical;
using Spectro.Web.Models;

namespace Spectro.Web.Controllers
{
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            return this.View("Empty");
        }

        public ActionResult ArenaTemplate()
        {
            return this.PartialView();
        }

        public ActionResult Arena(int gameId)
        {
            var own = new Gamer(new List<ICard> { new GoblinBerserker(), new WallOfFire() });
            own.Wariors[3] = new Spectro.Cards.Wariors.GoblinBerserker();
            var rival = new Gamer(new List<ICard> { new GoblinBerserker(), new WallOfFire() });
            rival.Wariors[3] = new Spectro.Cards.Wariors.WallOfFire();
            return this.Json(new ArenaModel(own, rival), JsonRequestBehavior.AllowGet);
        }
    }
}
